<?php
//Svetlana Gornostajeva neljapaevati 17.15-21.15 6.11.2011

function estday(&$estday,$nr)
    {
        $day["Monday"] = "esmaspaev"; 
        $day["Tuesday"] = "teisipaev"; 
        $day["Wednesday"] = "kolmapaev"; 
        $day["Thursday" ]= "neljapaev"; 
        $day["Friday"] = "reede"; 
        $day["Saturday"] = "laupaev"; 
        $day["Sunday"] = "puhapaev"; 
        $estday = $day[$nr];
        return ($estday);
    }
$eestinimi = $today = date("l");
estday ($eestinimi,$today);
echo  "<br><br> <b>Tana on meil ilus paev</b> <b><span style='color: #FF4500 '><strong>$eestinimi.</strong></span></b>";
?>